package com.njupt.blog.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/*
 * 博客表
 */
@Entity
public class Blog {
	private Long id;
	private String blogName;   //博客的名称
	private String managerName;// 博客管理者
	private Long managerId;   //创建博客的用户Id    注：外键关联用户表
	private String description;  //博客的描述
	private Date creationDate;  //博客创建时间
	private Long pictureId;     //博客图标的Id   注：外键关联图片表
	private String ifPersonal;    //1:公开,0：不公开
	private String type;//public:公共博客，private：私有博客
	
	@Id @GeneratedValue(strategy=GenerationType.AUTO)  
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	
	public String getManagerName() {
		return managerName;
	}
	public void setManagerName(String managerName) {
		this.managerName = managerName;
	}
	public Long getManagerId() {
		return managerId;
	}
	public void setManagerId(Long long1) {
		this.managerId = long1;
	}
	public String getBlogName() {
		return blogName;
	}
	public void setBlogName(String blogName) {
		this.blogName = blogName;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Date getCreationDate() {
		return creationDate;
	}
	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
	public Long getPictureId() {
		return pictureId;
	}
	public void setPictureId(Long pictureId) {
		this.pictureId = pictureId;
	}
	public String getIfPersonal() {
		return ifPersonal;
	}
	public void setIfPersonal(String ifPersonal) {
		this.ifPersonal = ifPersonal;
	}
	public String getType()
	{
		return type;
	}
	public void setType(String type)
	{
		this.type = type;
	}
}
